home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
text
/
print
/
VCArchive321.lha
/
vcarchive
/
Untitled III.install
< prev
next >
Wrap
Text File
|
1995-11-15
|
11KB
|
416 lines
; *************************************************************************
; ****************** Untitled III Installation Script *******************
; *************************************************************************
;
; $VER: Untitled III.install 1.1 (15.10.95)
;
; Copyright ©1995 Harald Zottmann
;
; *************************************************************************
;
; ------------------------------------------------------------------------
; Find out about program version
(set vernum-vca (getversion "Untitled"))
(set version-vca (/ vernum-vca 65536))
(set revision-vca (- vernum-vca (* version-vca 65536) ) )
; ------------------------------------------------------------------------
; Set default destination directory
(set def-vca-dir "SYS:")
; ------------------------------------------------------------------------
; Set default language
(set default_lang 1)
; ------------------------------------------------------------------------
; Init some strings
(set #yes-msg "Yes")
(set #no-msg "No")
(set #new-msg "New Requester Look")
(set #old-msg "Old Requester Look")
(set #mc-msg "MC - Music Cassettes")
(set #cd-msg "CD - Compact Discs")
(set #phono-msg "Phono - Longplayers")
(set #video-msg "Video - Video Tapes")
(set #bad-kick-msg
"Untitled III requires AmigaOS 2.04 or better !"
)
(set #hello-msg
(cat
("Welcome to Untitled V%ld.%ld\n\n" version-vca revision-vca)
"This script will install Untitled III and "
"related files on your Amiga.\n\n"
"You will need to answer a few questions such as "
"where you would like the program installed.\n\n"
"If you do not wish to install Untitled at this time, "
"select the 'Abort Install' button now. "
)
)
(set #goodbye-msg
(cat
"The installation of Untitled III is now complete. "
"Have a look at the guides to get more information "
"about this powerful tool. If you have TeX installed "
"on your Amiga, you can print the DVI-file with the "
"complete program description.\n\n"
"Don`t forget to register if you use Untitled III "
"frequently. See the docs for more information.\n\n"
"Have fun..."
)
)
(set #shortbye-msg
(cat
"Don`t forget to register if you use Untitled III "
"frequently. See the docs for more information.\n\n"
"Have fun..."
)
)
(set #vca-askdir-msg
"Select the directory to install Untitled III in."
)
(set #locale-msg
(cat
"Untitled III is localized and has been translated "
"into the following languages. Please indicate "
"which translation you wish to install.\n"
)
)
(set #locale-help
(cat
"English and Deutsch are the languages which are "
"supported by Untitled III. "
"Simply specify the language you prefer. "
"You can change your selection later, "
"by modifying the corresponding Tooltype. "
"The AmigaGuide files for Untitled III will "
"be present for both languages, regardless of "
"your present selection."
)
)
(set #examples-msg
(cat
"Untitled III comes with several example files. "
"Please select whether you want them to be "
"installed for training purposes. "
" You can delete them later, if you want.\n"
)
)
(set #examples-help
(cat
"These files provide some examples on how to "
"work with Untitled III. If you have a "
"previous version of Untitled III installed "
"and this is only an update, you must not "
"install these examples. "
)
)
(set #su-mode-msg
(cat
"\Untitled III manages your MCs, CDs, "
"Longplayers and Videos. Please select the "
"default mode of Untitled III on program start. "
"You can change this selection later, if you want.\n"
)
)
(set #su-mode-help
(cat
"This option gives you the choice between the four "
"different modes (MC, CD, Phono, Video) of Untitled III. "
"The selected mode will be invoked on every program start, "
"but you can alter the mode during run time, whenever you want. "
"If you are not sure, the best decision is to "
"select the mode which you intend to use most often. "
)
)
(set #su-req-msg
(cat
"Untitled III provides two different requester styles. "
"The new OS2.x requester look and an old internal one. "
"The advantage of the old one is, that you can "
"confirm it with the <RETURN> key, and cancel it "
"with the <ESCAPE> key. The new one however looks much neater.\n"
)
)
(set #su-req-help
(cat
"This option gives you the choice between two "
"different requester styles. "
"If you are not sure, select the new one. "
"You can change this selection later, if you want.\n"
)
)
; ************************************************************************
; Begin actual installation
; ************************************************************************
; ------------------------------------------------------------------------
; Check for KickV37 or better
(if (< (/ (getversion) 65536) 37)
(
(abort #bad-kick-msg)
)
)
; ------------------------------------------------------------------------
; Print the welcome message
(message #hello-msg)
; ------------------------------------------------------------------------
; Ask the user where we should install Untitled III.
(set vcadir
(askdir
(prompt #vca-askdir-msg)
(help @askdir-help)
(default def-vca-dir)
)
)
(if (= 0 @user-level)
(
(set vcadir (tackon @default-dest "VCArchive") )
(makedir vcadir)
(copyfiles (source "/VCArchive") (dest vcadir) (infos) (all))
(exit (#shortbye-msg))
)
)
(copyfiles (source "Untitled") (dest vcadir) (infos) )
(if (NOT(exists (tackon vcadir "VCA.CFG") ) )
(copyfiles (source "VCA.CFG") (dest vcadir) )
)
(if (NOT(exists (tackon vcadir "VCA.FNK") ) )
(copyfiles (source "VCA.FNK") (dest vcadir) )
)
(copyfiles (source "VCA_E.guide") (dest vcadir) (infos) )
(copyfiles (source "VCA_D.guide") (dest vcadir) (infos) )
(set toolsdrw (tackon vcadir "Tools"))
(makedir toolsdrw)
(copyfiles (source "Tools.info") (dest vcadir) )
(copyfiles (source "Tools/VideoCounter") (dest toolsdrw) (infos) )
(copyfiles (source "Tools/Backup") (dest toolsdrw) (infos) )
(copyfiles (source "Tools/Requester") (dest toolsdrw) )
(copyfiles (source "Tools/FUnCopy") (dest toolsdrw) )
(set docsdrw (tackon vcadir "Docs"))
(makedir docsdrw)
(copyfiles (source "Docs.info") (dest vcadir) )
(copyfiles (source "Docs/VCA_E.dvi") (dest docsdrw) (infos) )
(copyfiles (source "Docs/VCA_E.doc") (dest docsdrw) (infos) )
(copyfiles (source "Docs/VCA.ReadMe") (dest docsdrw) (infos) )
(copyfiles (source "Docs/VCA_D.dvi") (dest docsdrw) (infos) )
(copyfiles (source "Docs/VCA_D.doc") (dest docsdrw) (infos) )
(copyfiles (source "Docs/VCA.LiesMich") (dest docsdrw) (infos) )
(copyfiles (source "Docs/ORDERFORM.TXT") (dest docsdrw) (infos) )
(copyfiles (source "Docs/DISCLAIMER.TXT") (dest docsdrw) (infos) )
; ------------------------------------------------------------------------
; Ask which built in language should be invoked for Untitled III.
(set lang
(askchoice
(prompt #locale-msg)
(help #locale-help)
(choices
"English"
"Deutsch"
)
(default default_lang)
)
)
(if (= 0 lang)
(tooltype
(dest (tackon vcadir "Untitled"))
(settooltype "LANGUAGE" "1")
)
)
(if (= 1 lang)
(tooltype
(dest (tackon vcadir "Untitled"))
(settooltype "LANGUAGE" "0")
)
)
; ------------------------------------------------------------------------
; Update from a version, previous to Untitled Version 3.0
(if (exists (tackon vcadir "Ordner_1") )
(rename (tackon vcadir "Ordner_1") (tackon vcadir "MC_Ordner_1") )
)
(if (exists (tackon vcadir "Ordner_2") )
(rename (tackon vcadir "Ordner_2") (tackon vcadir "MC_Ordner_2") )
)
(if (exists (tackon vcadir "Ordner_3") )
(rename (tackon vcadir "Ordner_3") (tackon vcadir "MC_Ordner_3") )
)
(if (exists (tackon vcadir "Ordner_1.List") )
(rename (tackon vcadir "Ordner_1.List") (tackon vcadir "MC_Ordner_1.Liste") )
)
(if (exists (tackon vcadir "Ordner_2.List") )
(rename (tackon vcadir "Ordner_2.List") (tackon vcadir "MC_Ordner_2.Liste") )
)
(if (exists (tackon vcadir "Ordner_3.List") )
(rename (tackon vcadir "Ordner_3.List") (tackon vcadir "MC_Ordner_3.Liste") )
)
; ------------------------------------------------------------------------
; Ask whether examples should be installed
(set examples
(askchoice
(prompt #examples-msg)
(help #examples-help)
(choices
#yes-msg
#no-msg
)
(default 0)
)
)
(if (= 0 examples)
(
(if (NOT(exists (tackon vcadir "MC_Ordner_1") ) )
( (copyfiles (source "MC_Ordner_1") (dest vcadir) )
(copyfiles (source "MC_Ordner_1.Liste") (dest vcadir) )
)
)
(if (NOT(exists (tackon vcadir "CD_Ordner_1") ) )
( (copyfiles (source "CD_Ordner_1") (dest vcadir) )
(copyfiles (source "CD_Ordner_1.Liste") (dest vcadir) )
)
)
(if (NOT(exists (tackon vcadir "Phono_Ordner_1") ) )
( (copyfiles (source "Phono_Ordner_1") (dest vcadir) )
(copyfiles (source "Phono_Ordner_1.Liste") (dest vcadir) )
)
)
(if (NOT(exists (tackon vcadir "Video_Ordner_1") ) )
( (copyfiles (source "Video_Ordner_1") (dest vcadir) )
(copyfiles (source "Video_Ordner_1.Liste") (dest vcadir) )
)
)
)
)
; ------------------------------------------------------------------------
; Ask for startup mode
(set su-mode
(askchoice
(prompt #su-mode-msg)
(help #su-mode-help)
(choices
#mc-msg
#cd-msg
#phono-msg
#video-msg
)
(default 0)
)
)
(if (= 0 su-mode)
(tooltype
(dest (tackon vcadir "Untitled"))
(settooltype "MODUS" "1")
)
)
(if (= 1 su-mode)
(tooltype
(dest (tackon vcadir "Untitled"))
(settooltype "MODUS" "2")
)
)
(if (= 2 su-mode)
(tooltype
(dest (tackon vcadir "Untitled"))
(settooltype "MODUS" "3")
)
)
(if (= 3 su-mode)
(tooltype
(dest (tackon vcadir "Untitled"))
(settooltype "MODUS" "4")
)
)
; ------------------------------------------------------------------------
; Ask for requester style
(set su-req
(askchoice
(prompt #su-req-msg)
(help #su-req-help)
(choices
#new-msg
#old-msg
)
(default 0)
)
)
(if (= 0 su-req)
(tooltype (dest (tackon vcadir "Untitled")) (settooltype "STYLE" "1") )
(tooltype (dest (tackon vcadir "Untitled")) (settooltype "STYLE" "0") )
)
; ------------------------------------------------------------------------
; Print the goodbye message
(message #goodbye-msg)